package com.lzp.wechat.controller;

import com.lzp.wechat.entity.User;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Api(tags = "测试接口")
public class TestController {

    @PostMapping(value = "/xml", produces = "application/xml;charset=UTF-8")
    @ApiOperation(value = "xml解析测试", notes = "xml解析测试")
    @ApiImplicitParam(paramType = "body", name = "users", value = "用户集合", required = true, dataType = "String")
    public User xml(@RequestBody User users) {
        System.out.println(users);
        return users;
    }

}
